package org.example.ims.Repository.Order;

import org.example.ims.Entity.Order.InStockDetail;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

@Repository
public interface InStockDetailRepository extends JpaRepository<InStockDetail, Integer>, JpaSpecificationExecutor<InStockDetail> {

    Page<InStockDetail> findByOrderOrderId(Integer orderId, Pageable pageable);
    Page<InStockDetail> findByProductId(Integer productId, Pageable pageable);
}